package net.kosev.su.tetris;

import java.util.HashMap;
import java.util.Map;

public class Config {
	
	private static Config instance = null;
	
	public static Config getInstance() {
		if (instance == null) {
			instance = new Config();
		}
		
		return instance;
	}
	
	private Map<String, String> data = new HashMap<String, String>();
	
	private Config() {
		loadData();
	}
	
	private void loadData() {
		data.put("tile_size", "20");
		data.put("board_width", "10");
		data.put("board_height", "20");
		data.put("score_factor", "100");
		
		data.put("game_title", "Tetris by Nikola Kosev");
		data.put("screen_width", "500");
		data.put("screen_height", "400");
	}
	
	public String get(String key) {
		return data.get(key);
	}
}
